package com.studentmanagement.dao;

import com.studentmanagement.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    User login(@Param("username") String username, @Param("password") String password);
    User getUserById(Integer id);
    User getUserByUsername(String username);
    List<User> getAllUsers();
    int insertUser(User user);
    int updateUser(User user);
    int deleteUser(Integer id);
} 